package com.moduleSys.utils.json;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.io.Serializable;

/**
 * Created by czw on 2017/7/16 0016.
 */
@Data
public class JsonResult implements Serializable{
    private int status = 0;
    private String msg;
    private Object data;
    private Long number;
    public JsonResult(){

    }

    public JsonResult(int status, String msg, Object data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public String toJsonString(){
       return JSON.toJSON(this).toString();
    }
}
